<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/detail.css">
</head>
<body>
    <header>
        <div class="banner">
            <div class="logo">
                <span>
                    网络全案营销服务提供商
                </span>
            </div>
            <ul>
                <li><a href="">网站首页</a></li>
                <li><a href="">传悦资源</a></li>
                <li><a href="">传悦案例</a></li>
                <li><a href="">传悦服务</a></li>
                <li><a href="">解决方案</a></li>
                <li><a href="">需求提交</a></li>
            </ul>
            <div class="imgs">

            </div>
        </div>
    </header>
     <div class="second">
		<h2></h2>
		<p class="jieshao"></p>
		<div id="con"></div>
	</div>
    <div class="last">
        <div class="last-middle">
            <div class="logo-last"></div>
            <div class="last-right">
                <ul>
                    <li><a href="">关于传悦</a></li>
                    <li><a href="">新闻动态</a></li>
                    <li><a href="">关于传悦</a></li>
                    <li><a href="">联系传悦</a></li>
                    <li><a href="">加入传悦</a></li>
                    <li><a href="">付款账户</a></li>
                </ul>
                <div>
                    Copyright&nbsp;2013&nbsp;创梦网络科技有限责任公司&nbsp;&nbsp;||&nbsp;&nbsp;传悦Chnyoo.cn All Rights Reserved&nbsp;&nbsp;京ICP备12005221号
                </div>
            </div>
        </div>
    </div>
	<script src="jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		String.prototype.parseUrl = function(){
			let arr = this.slice(this.indexOf("?")+1).split("%");
			let result = {};
			for(let i = 0; i < arr.length; i++){
				let key = arr[i].split("=")[0]
				let value = arr[i].split("=")[1]
				result[key] = value;
			}
			return result;
		}
		$.ajax({
			url:"http://10.35.170.110/getnews",
			data:{
				id : location.href.parseUrl().id
			},
			success:function(data){
				// console.log(data)
				$(".second h2").html(data[0].title)
				$(".second .jieshao").html(data[0].smalltitle)
				$(".second #con").html(data[0].content)
			}
		})
	</script>
</body>
</html>